package com.study.factory.original;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class FactoryTest {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("SpringFactory.xml");

        OriginalDemo bean = (OriginalDemo)context.getBean("demo");

        System.out.println(bean);


    }
}
